﻿using System.Windows.Media;

namespace Bookvar.UI
{
    public class StraightLineTopicConnector : ConnectingShapeTopicConnector
    {
        protected override ConnectingShape ConstructConnectingShape()
        {
            return new LineConnectingShape();
        }

        private class LineConnectingShape : ConnectingShape
        {
            protected override Geometry DefiningGeometry
            {
                get { return new LineGeometry( StartPoint, EndPoint ); }
            }
        }
    }
}